package com.example.springcloud.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.io.Serializable;

/**
 * 用户基本信息对象 users
 * 
 * @author hx
 * @date 2025-02-14
 */
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "用户基本信息对象")
@Data
public class Users implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    @ApiModelProperty(value = "用户ID")
    private Long userId;

    /** 登录账号 */
    @Excel(name = "登录账号")
    @ApiModelProperty(value = "登录账号")
    private String username;

    /** 登录密码 */
    @Excel(name = "登录密码")
    @ApiModelProperty(value = "登录密码")
    private String password;

    /** 用户头像地址 */
    @Excel(name = "用户头像地址")
    @ApiModelProperty(value = "用户头像地址")
    private String avatar;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    @ApiModelProperty(value = "用户昵称")
    private String nickname;

    /** 个性签名 */
    @Excel(name = "个性签名")
    @ApiModelProperty(value = "个性签名")
    private String signature;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("username", getUsername())
            .append("password", getPassword())
            .append("avatar", getAvatar())
            .append("nickname", getNickname())
            .append("signature", getSignature())
            .toString();
    }
}
